    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort }${pageContext.request.contextPath}"
	   var="basePath" />
<jsp:include page="../../commons/jsp/common.jsp"></jsp:include>
<script type="text/javascript" src="${basePath}/student_myw/js/addStu.js"></script>
<div style="padding-top: 20px;padding-right: 30px">
<form class="layui-form" method="post" id="addOrUpdateForm">
  <div class="layui-form-item">
    <label class="layui-form-label"  required  style="width: 100px">姓名</label>
    <div class="layui-input-block">
      <input type="text" id="name" name="name" required  lay-verify="name" placeholder="请输入名字" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 100px">年龄</label>
    <div class="layui-input-block">
      <input type="text" id="age" name="age" required  lay-verify="age" placeholder="请输入年龄" autocomplete="off" class="layui-input">
    </div>
  </div>
 <div class="layui-form-item">
    <label class="layui-form-label" >性别</label>
    <div class="layui-input-block" >
      <input type="radio" name="sex" value="1" title="男" >
      <input type="radio" name="sex" value="0" title="女" checked>
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label" style="width: 100px">所在班级</label>
    <div class="layui-input-block">
        <input type="hidden" name="class_name" id="class_name"value="">
    	<select name="class_code" id="class_code" required  lay-verify="class_code">
		</select>
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 100px">头像</label>
    <div>
	            <input type="file" id="file" name="file" accept="undefined" class="layui-upload-file">
	            <img id="head_img" name="head_img" src="">
    </div>
  </div>
  
  <div class="layui-form-item">
 				<input type="hidden" name="head_upload" id="head_upload">
	  
  </div>
  
  <div class="layui-form-item">
    <div class="layui-input-block" >
      <button class="layui-btn" lay-submit lay-filter="formDemo" id="commit">立即提交</button>
      
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
</div>




